#{extends 'EmploymentAction/layout.html' /}

<div id="crudList" class="">

    <h2 id="crudListTitle">友情链接管理</h2>

    <div id="crudListSearch">
    </div>

    <div id="crudListTable">
    <table>
    <thead>
      <tr>
        <th>公司logo</th>
        <th>标题</th>
        <th>链接地址</th>
        <th>删除</th>
      </tr>
      </thead>
      #{if flash.success}
	    <tr>
		    <td colspan="4" style="text-align: center">
		    <font color="red">${flash.success}</font>
		    </td>
	    </tr>
       #{/if}
      #{list items:blogrolls,as:'blogroll'}
      <tr>
        <td><img src="${blogroll.bloLogo}" width="40" height="30" border="1"></td>
        <td><a href="@{show(blogroll.id)}">${blogroll.bloTit}</a></td>
        <td>${blogroll.bloUrl}</td>
        <td><a href="@{delete(blogroll.id)}" onclick="return confirm('确定删除吗？')">删除</a></td>
      </tr>
        #{/list}
    </table>
    </div>

    <div id="crudListPagination">
        
    </div>

    <p id="crudListAdd">
        <a href="@{blank()}">添加</a>
    </p>

</div>
